'use strict';

function choose_even(collection) {

  function isEven(element){
    return element%2==0;  
  }
  let filtered =collection.filter(isEven);
  return filtered;
  
}

module.exports = choose_even;

